impl Solution {
    pub fn can_construct(s: String, k: i32) -> bool {
        if (s.len() as i32)<k{
            return  false;
        }
        let mut count=[0;26];
        for i in s.bytes(){
            count[(i-b'a') as usize]+=1;
        }
        let n_count=count.iter().fold(0, |mut acc,v|{
            if *v&1==1{
                acc+=1;
            }
            acc
        });
        if n_count>k{
            return  false;
        }else{
            true
        }
        

    }
}
